<%@ taglib uri="/WEB-INF/taglib/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/taglib/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/taglib/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/taglib/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html:errors property="createProjetWrong" />

<fieldset id="createProjet_fieldset">
	<legend><bean:message key="project.create.legend" /></legend>
	<html:form action="/project" method="post" styleId="createProjet_form">
		<html:hidden property="cmd" value="add" />
		<html:hidden property="managerId" />


		<p>
			<label for="subject" accesskey="L"><bean:message key="project.create.subject" /> :</label>
			<html:text styleId="subject" property="subject" />
		</p>

		<p>
			<label for="start_date" accesskey="L"><bean:message key="project.create.startDate" /> :</label>
			<html:text styleId="start_date" property="startDate" />
		</p>

		<p>
			<label for="end_date" accesskey="L"><bean:message key="project.create.endDate" /> :</label>
			<html:text styleId="end_date" property="endDate" />
		</p>

		<p>
			<label for="location" accesskey="L"><bean:message key="project.create.location" /> :</label>
			<html:text styleId="location" property="location" />
		</p>


		<p>
			<label for="company" accesskey="L"><bean:message key="project.create.company" /> :</label>
			<html:text styleId="company" property="company" />
		</p>

		<p>
			<label for="category_id" accesskey="L"><bean:message key="project.create.category" /> :</label>
			<html:select property="categoryId">
				<c:forEach var="categoryVar" items="${categoryMap}">
					<html:option value="${categoryVar.key}" key="${categoryVar.value}" />
				</c:forEach>
			</html:select>
		</p>



		<p>
			<label for="short_description" accesskey="L"><bean:message key="project.create.shortDescription" /> :</label>
			<html:textarea styleId="short_description" property="shortDescription" />
		</p>


		<p>
			<label for="budget" accesskey="L"><bean:message key="project.create.budget" /> :</label>
			<html:text styleId="budget" property="budget" />
		</p>

		<p id="project_submit">
			<html:submit><bean:message key="project.create.validate" /></html:submit>

			<html:reset><bean:message key="project.create.cancel" /></html:reset>
        </p>

	</html:form>

</fieldset>